MetaCC::CodeSnippetsCollection Class Reference

#include <metacc_compilation.h>

List of all members.


Detailed Description

Collection of named code snippets.

Definition at line 38 of file metacc_compilation.h.

Public Member Functions

bool snippet_exist (std::string snippet_name) const
 Returns true if snippet with given name exist in the collection.
unsigned int snippets_count () const
 Return number of snippets in this collection.
std::string get_snippet_name (unsigned int index) const
 Retrieve snippet name by index (const).
CodeSnippetget_snippet (std::string snippet_name)
 Returns reference to code snippet given by name.
const CodeSnippetget_snippet (std::string snippet_name) const
 Returns reference to code snippet given by name (const).
CodeSnippetget_snippet (unsigned int index)
 Returns reference to code snippet given by its index.
const CodeSnippetget_snippet (unsigned int index) const
 Returns reference to code snippet given by its index (const).
void add_snippet (std::string snippet_name, const CodeSnippet &snippet)
 Add/replace snippet with given name to the collection.


Member Function Documentation

bool MetaCC::CodeSnippetsCollection::snippet_exist ( std::string  snippet_name  )  const

Returns true if snippet with given name exist in the collection.

Definition at line 102 of file metacc_compilation.cpp.

Referenced by MetaCC::Compilation::generate_code_for_exec_function().

unsigned int MetaCC::CodeSnippetsCollection::snippets_count (  )  const

Return number of snippets in this collection.

Definition at line 108 of file metacc_compilation.cpp.

std::string MetaCC::CodeSnippetsCollection::get_snippet_name ( unsigned int  index  )  const

Retrieve snippet name by index (const).

Definition at line 113 of file metacc_compilation.cpp.

CodeSnippet & MetaCC::CodeSnippetsCollection::get_snippet ( std::string  snippet_name  ) 

Returns reference to code snippet given by name.

Definition at line 119 of file metacc_compilation.cpp.

Referenced by MetaCC::Compilation::generate_code_for_exec_function().

const CodeSnippet & MetaCC::CodeSnippetsCollection::get_snippet ( std::string  snippet_name  )  const

Returns reference to code snippet given by name (const).

Definition at line 126 of file metacc_compilation.cpp.

CodeSnippet & MetaCC::CodeSnippetsCollection::get_snippet ( unsigned int  index  ) 

Returns reference to code snippet given by its index.

Definition at line 133 of file metacc_compilation.cpp.

const CodeSnippet & MetaCC::CodeSnippetsCollection::get_snippet ( unsigned int  index  )  const

Returns reference to code snippet given by its index (const).

Definition at line 143 of file metacc_compilation.cpp.

void MetaCC::CodeSnippetsCollection::add_snippet ( std::string  snippet_name,
const CodeSnippet snippet 
)

Add/replace snippet with given name to the collection.

Definition at line 153 of file metacc_compilation.cpp.


The documentation for this class was generated from the following files:
Generated on Sat Sep 9 03:50:56 2006 for Openem APIs by  doxygen 1.4.7