OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
DiscMeta Class Reference

#include <DiscMeta.h>

Collaboration diagram for DiscMeta:
Collaboration graph
[legend]

Public Types

typedef std::pair< int,
std::string * > 
element_t
 
typedef vmap< int, element_tcontainer_t
 
typedef container_t::iterator iterator
 
typedef container_t::const_iterator const_iterator
 
typedef container_t::value_type value_type
 

Public Member Functions

 DiscMeta (const char *fname)
 
 ~DiscMeta ()
 
const std::string & getFilename () const
 
unsigned int size () const
 
int getLineNumber (unsigned int) const
 
const std::string & getKeyword (unsigned int)
 
int getNumWords (unsigned int) const
 
std::string * getWords (unsigned int)
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
void printDebug (Inform &)
 

Private Member Functions

bool read_meta_line (FILE *, std::string *&, int &)
 

Private Attributes

std::string MetaFile
 
container_t Lines
 

Detailed Description

Definition at line 35 of file DiscMeta.h.

Member Typedef Documentation

Definition at line 42 of file DiscMeta.h.

Definition at line 40 of file DiscMeta.h.

typedef std::pair<int, std::string *> DiscMeta::element_t

Definition at line 39 of file DiscMeta.h.

Definition at line 41 of file DiscMeta.h.

Definition at line 43 of file DiscMeta.h.

Constructor & Destructor Documentation

DiscMeta::DiscMeta ( const char *  fname)

Definition at line 36 of file DiscMeta.cpp.

References IpplInfo::abort(), endl(), ERRORMSG, vmap< Key, T, Compare >::insert(), Lines, MetaFile, IpplInfo::myNode(), and read_meta_line().

Here is the call graph for this function:

DiscMeta::~DiscMeta ( )

Definition at line 75 of file DiscMeta.cpp.

References begin(), and end().

Here is the call graph for this function:

Member Function Documentation

iterator DiscMeta::begin ( )
inline

Definition at line 76 of file DiscMeta.h.

References vmap< Key, T, Compare >::begin(), and Lines.

Referenced by getLineNumber(), getNumWords(), getWords(), FieldLayout< Dim >::read(), DiscParticle::read_meta(), and ~DiscMeta().

Here is the call graph for this function:

const_iterator DiscMeta::begin ( ) const
inline

Definition at line 78 of file DiscMeta.h.

References vmap< Key, T, Compare >::begin(), and Lines.

Here is the call graph for this function:

iterator DiscMeta::end ( )
inline

Definition at line 77 of file DiscMeta.h.

References vmap< Key, T, Compare >::end(), and Lines.

Referenced by getLineNumber(), getNumWords(), getWords(), FieldLayout< Dim >::read(), and ~DiscMeta().

Here is the call graph for this function:

const_iterator DiscMeta::end ( ) const
inline

Definition at line 79 of file DiscMeta.h.

References vmap< Key, T, Compare >::end(), and Lines.

Here is the call graph for this function:

const std::string& DiscMeta::getFilename ( ) const
inline

Definition at line 58 of file DiscMeta.h.

References MetaFile.

const std::string & DiscMeta::getKeyword ( unsigned int  n)

Definition at line 105 of file DiscMeta.cpp.

References getWords().

Referenced by printDebug().

Here is the call graph for this function:

int DiscMeta::getLineNumber ( unsigned int  n) const

Definition at line 86 of file DiscMeta.cpp.

References begin(), end(), PAssert, PAssert_LT, and size().

Here is the call graph for this function:

int DiscMeta::getNumWords ( unsigned int  n) const

Definition at line 115 of file DiscMeta.cpp.

References begin(), end(), PAssert, PAssert_LT, and size().

Referenced by printDebug().

Here is the call graph for this function:

std::string * DiscMeta::getWords ( unsigned int  n)

Definition at line 134 of file DiscMeta.cpp.

References begin(), end(), and PAssert.

Referenced by getKeyword(), and printDebug().

Here is the call graph for this function:

void DiscMeta::printDebug ( Inform msg)

Definition at line 185 of file DiscMeta.cpp.

References endl(), getKeyword(), getNumWords(), getWords(), MetaFile, and size().

Here is the call graph for this function:

bool DiscMeta::read_meta_line ( FILE *  f,
std::string *&  tokens,
int &  numtokens 
)
private

Definition at line 153 of file DiscMeta.cpp.

References DiscConfig::dc_tokenize_string().

Referenced by DiscMeta().

Here is the call graph for this function:

unsigned int DiscMeta::size ( void  ) const
inline

Definition at line 61 of file DiscMeta.h.

References Lines, and vmap< Key, T, Compare >::size().

Referenced by getLineNumber(), getNumWords(), and printDebug().

Here is the call graph for this function:

Member Data Documentation

container_t DiscMeta::Lines
private

Definition at line 89 of file DiscMeta.h.

Referenced by begin(), DiscMeta(), end(), and size().

std::string DiscMeta::MetaFile
private

Definition at line 86 of file DiscMeta.h.

Referenced by DiscMeta(), getFilename(), and printDebug().


The documentation for this class was generated from the following files: