replicode
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | Friends | List of all members
r_comp::RepliStruct Class Reference

#include <replistruct.h>

Collaboration diagram for r_comp::RepliStruct:
Collaboration graph

Public Types

enum  Type {
  Root, Structure, Set, Atom,
  Directive, Condition, Development
}
 

Public Member Functions

 RepliStruct (r_comp::RepliStruct::Type type)
 
 ~RepliStruct ()
 
void reset ()
 
uint64_t getIndent (std::istream *stream)
 
int64_t parse (std::istream *stream, uint64_t &curIndent, uint64_t &prevIndent, int64_t paramExpect=0)
 
bool parseDirective (std::istream *stream, uint64_t &curIndent, uint64_t &prevIndent)
 
int64_t process ()
 
RepliStructfindAtom (const std::string &name)
 
RepliStructloadReplicodeFile (const std::string &filename)
 
RepliStructclone () const
 
std::string print () const
 
std::string printError () const
 

Public Attributes

Type type
 
std::string cmd
 
std::string tail
 
std::string label
 
std::string error
 
std::string fileName
 
uint64_t line
 
std::vector< RepliStruct * > args
 
RepliStructparent
 

Static Public Attributes

static std::unordered_map< std::string, RepliMacro * > RepliMacros
 
static std::unordered_map< std::string, int64_t > Counters
 
static std::list< RepliCondition * > Conditions
 
static uint64_t GlobalLine = 1
 
static std::string GlobalFilename
 

Private Member Functions

 RepliStruct (const RepliStruct &)
 
 RepliStruct ()
 

Friends

std::ostream & operator<< (std::ostream &os, const RepliStruct &structure)
 
std::ostream & operator<< (std::ostream &os, RepliStruct *structure)
 

Member Enumeration Documentation

Enumerator
Root 
Structure 
Set 
Atom 
Directive 
Condition 
Development 

Constructor & Destructor Documentation

r_comp::RepliStruct::RepliStruct ( r_comp::RepliStruct::Type  type)
r_comp::RepliStruct::~RepliStruct ( )
r_comp::RepliStruct::RepliStruct ( const RepliStruct )
private
r_comp::RepliStruct::RepliStruct ( )
private

Here is the caller graph for this function:

Member Function Documentation

RepliStruct * r_comp::RepliStruct::clone ( ) const

Here is the call graph for this function:

Here is the caller graph for this function:

RepliStruct * r_comp::RepliStruct::findAtom ( const std::string &  name)

Here is the call graph for this function:

Here is the caller graph for this function:

uint64_t r_comp::RepliStruct::getIndent ( std::istream *  stream)

Here is the caller graph for this function:

RepliStruct * r_comp::RepliStruct::loadReplicodeFile ( const std::string &  filename)

Here is the call graph for this function:

Here is the caller graph for this function:

int64_t r_comp::RepliStruct::parse ( std::istream *  stream,
uint64_t curIndent,
uint64_t prevIndent,
int64_t  paramExpect = 0 
)

Here is the call graph for this function:

Here is the caller graph for this function:

bool r_comp::RepliStruct::parseDirective ( std::istream *  stream,
uint64_t curIndent,
uint64_t prevIndent 
)

Here is the call graph for this function:

Here is the caller graph for this function:

std::string r_comp::RepliStruct::print ( ) const
std::string r_comp::RepliStruct::printError ( ) const

Here is the caller graph for this function:

int64_t r_comp::RepliStruct::process ( )

Here is the call graph for this function:

Here is the caller graph for this function:

void r_comp::RepliStruct::reset ( )

Here is the caller graph for this function:

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const RepliStruct structure 
)
friend
std::ostream& operator<< ( std::ostream &  os,
RepliStruct structure 
)
friend

Member Data Documentation

std::vector<RepliStruct *> r_comp::RepliStruct::args
std::string r_comp::RepliStruct::cmd
std::list< RepliCondition * > r_comp::RepliStruct::Conditions
static
std::unordered_map< std::string, int64_t > r_comp::RepliStruct::Counters
static
std::string r_comp::RepliStruct::error
std::string r_comp::RepliStruct::fileName
std::string r_comp::RepliStruct::GlobalFilename
static
uint64_t r_comp::RepliStruct::GlobalLine = 1
static
std::string r_comp::RepliStruct::label
uint64_t r_comp::RepliStruct::line
RepliStruct* r_comp::RepliStruct::parent
std::unordered_map< std::string, RepliMacro * > r_comp::RepliStruct::RepliMacros
static
std::string r_comp::RepliStruct::tail
Type r_comp::RepliStruct::type

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