BALL  1.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Public Member Functions | Public Attributes
BALL::CIFFile::Datablock Class Reference

#include <BALL/FORMAT/CIFFile.h>

List of all members.

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 Item & getDataItem (const String &item_name) const
Item & getDataItem (const String &item_name)
const std::vector< Index > getSaveframeIndicesByCategory (const String &name) const
std::vector< Index > getSaveframeIndicesByCategory (const String &name)
std::vector< SaveFrame > getSaveframesByCategory (const String &name) const
const SaveFrame & getSaveframeByName (const String &name) const
SaveFrame & getSaveframeByName (const String &name)
const SaveFrame & getSaveframeByIndex (const Index index) const
SaveFrame & getSaveframeByIndex (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< Datacontent > data
StringHashMap< Index > saveframe_names
std::multimap< String, Index > saveframe_categories
StringHashMap< Index > item_names
Item dummy_data_item_
SaveFrame dummy_saveframe_
vector< SaveFrame > dummy_saveframes_
vector< Index > dummy_indices_

Detailed Description

Nested class for the datablock entity of the CIFFile

Definition at line 139 of file CIFFile.h.


Member Function Documentation

Clears the Datablock

const Item& BALL::CIFFile::Datablock::getDataItem ( const String &  item_name) const

Returns the saveframe labeled 'name'.

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

Returns the saveframe of category name.

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

void BALL::CIFFile::Datablock::insertDatacontent ( const SaveFrame &  new_saveframe)
std::ostream& BALL::CIFFile::Datablock::operator>> ( std::ostream &  os) const

Sets the name of a Datablock

Sets the name of a new Datablock


Member Data Documentation

Stores the datablock content

Definition at line 188 of file CIFFile.h.

Definition at line 198 of file CIFFile.h.

Definition at line 201 of file CIFFile.h.

Definition at line 199 of file CIFFile.h.

Definition at line 200 of file CIFFile.h.

Hashes the items

Definition at line 196 of file CIFFile.h.

The name of this saveframe

Definition at line 185 of file CIFFile.h.

Definition at line 193 of file CIFFile.h.

Hashes the saveframes - we assume, that they are unique

Definition at line 191 of file CIFFile.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines