BALL  1.4.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
BALL::CIFFile::Datablock Class Reference

#include <BALL/FORMAT/CIFFile.h>

Public Member Functions

void clear ()
 
void start (String blockname)
 
void insertDatacontent (const Datacontent &content)
 
void insertDatacontent (const SaveFrame &new_saveframe)
 
void insertDatacontent (const Item &item)
 
const ItemgetDataItem (const String &item_name) const
 
ItemgetDataItem (const String &item_name)
 
const std::vector< IndexgetSaveframeIndicesByCategory (const String &name) const
 
std::vector< IndexgetSaveframeIndicesByCategory (const String &name)
 
std::vector< SaveFramegetSaveframesByCategory (const String &name) const
 
const SaveFramegetSaveframeByName (const String &name) const
 
SaveFramegetSaveframeByName (const String &name)
 
const SaveFramegetSaveframeByIndex (const Index index) const
 
SaveFramegetSaveframeByIndex (const Index index)
 
bool hasSaveframeName (const String &name) const
 
bool hasSaveframeCategory (const String &name) const
 
bool hasItem (const String &name) const
 
void setName (String blockname)
 
std::ostream & operator>> (std::ostream &os) const
 

Public Attributes

String name
 
std::vector< Datacontentdata
 
StringHashMap< Indexsaveframe_names
 
std::multimap< String, Indexsaveframe_categories
 
StringHashMap< Indexitem_names
 
Item dummy_data_item_
 
SaveFrame dummy_saveframe_
 
vector< SaveFramedummy_saveframes_
 
vector< Indexdummy_indices_
 

Detailed Description

Nested class for the datablock entity of the CIFFile

Definition at line 139 of file CIFFile.h.

Member Function Documentation

void BALL::CIFFile::Datablock::clear ( )

Clears the Datablock

const Item& BALL::CIFFile::Datablock::getDataItem ( const String item_name) const
Item& BALL::CIFFile::Datablock::getDataItem ( const String item_name)
const SaveFrame& BALL::CIFFile::Datablock::getSaveframeByIndex ( const Index  index) const
SaveFrame& BALL::CIFFile::Datablock::getSaveframeByIndex ( const Index  index)
const SaveFrame& BALL::CIFFile::Datablock::getSaveframeByName ( const String name) const

Returns the saveframe labeled 'name'.

SaveFrame& BALL::CIFFile::Datablock::getSaveframeByName ( const String name)
const std::vector<Index> BALL::CIFFile::Datablock::getSaveframeIndicesByCategory ( const String name) const

Returns the saveframe of category name.

std::vector<Index> BALL::CIFFile::Datablock::getSaveframeIndicesByCategory ( const String name)
std::vector<SaveFrame> BALL::CIFFile::Datablock::getSaveframesByCategory ( const String name) const
bool BALL::CIFFile::Datablock::hasItem ( const String name) const
bool BALL::CIFFile::Datablock::hasSaveframeCategory ( const String name) const
bool BALL::CIFFile::Datablock::hasSaveframeName ( const String name) const

Returns true if the datablock contains a Saveframe of category name.

void BALL::CIFFile::Datablock::insertDatacontent ( const Datacontent content)
void BALL::CIFFile::Datablock::insertDatacontent ( const SaveFrame new_saveframe)
void BALL::CIFFile::Datablock::insertDatacontent ( const Item item)
std::ostream& BALL::CIFFile::Datablock::operator>> ( std::ostream &  os) const
void BALL::CIFFile::Datablock::setName ( String  blockname)

Sets the name of a Datablock

void BALL::CIFFile::Datablock::start ( String  blockname)

Sets the name of a new Datablock

Member Data Documentation

std::vector<Datacontent> BALL::CIFFile::Datablock::data

Stores the datablock content

Definition at line 188 of file CIFFile.h.

Item BALL::CIFFile::Datablock::dummy_data_item_

Definition at line 198 of file CIFFile.h.

vector<Index> BALL::CIFFile::Datablock::dummy_indices_

Definition at line 201 of file CIFFile.h.

SaveFrame BALL::CIFFile::Datablock::dummy_saveframe_

Definition at line 199 of file CIFFile.h.

vector<SaveFrame> BALL::CIFFile::Datablock::dummy_saveframes_

Definition at line 200 of file CIFFile.h.

StringHashMap<Index> BALL::CIFFile::Datablock::item_names

Hashes the items

Definition at line 196 of file CIFFile.h.

String BALL::CIFFile::Datablock::name

The name of this saveframe

Definition at line 185 of file CIFFile.h.

std::multimap<String, Index> BALL::CIFFile::Datablock::saveframe_categories

Definition at line 193 of file CIFFile.h.

StringHashMap<Index> BALL::CIFFile::Datablock::saveframe_names

Hashes the saveframes - we assume, that they are unique

Definition at line 191 of file CIFFile.h.