Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

VERTEXTRUTH Class Reference

#include <AsciiData.hh>

Inheritance diagram for VERTEXTRUTH:

Tagged Tagged Tagged Tagged List of all members.

Public Member Functions

bool initialized () const
bool initialized () const
bool initialized () const
bool initialized () const
void set_initialized ()
void set_initialized ()
void set_initialized ()
void set_initialized ()
void unset_initalized ()
void unset_initalized ()
void unset_initalized ()
void unset_initalized ()
 VERTEXTRUTH ()
 VERTEXTRUTH ()
 VERTEXTRUTH ()
 VERTEXTRUTH ()

Public Attributes

int nTruth
std::vector< VertexTruthTypetruthCol
std::vector< VertexTruthTypetruthCol
std::vector< VertexTruthTypetruthCol
std::vector< VertexTruthTypetruthCol

Protected Member Functions

void check_end_tag (std::istream &is, const char *tag)
void check_end_tag (std::istream &is, const char *tag)
void check_end_tag (std::istream &is, const char *tag)
void check_end_tag (std::istream &is, const char *tag)
void check_start_tag (std::istream &is, const char *tag)
void check_start_tag (std::istream &is, const char *tag)
void check_start_tag (std::istream &is, const char *tag)
void check_start_tag (std::istream &is, const char *tag)

Friends

std::ostreamoperator<< (std::ostream &, const VERTEXTRUTH &x)
std::ostreamoperator<< (std::ostream &, const VERTEXTRUTH &x)
std::ostreamoperator<< (std::ostream &, const VERTEXTRUTH &x)
std::ostreamoperator<< (std::ostream &, const VERTEXTRUTH &x)
std::istreamoperator>> (std::istream &, VERTEXTRUTH &x)
std::istreamoperator>> (std::istream &, VERTEXTRUTH &x)
std::istreamoperator>> (std::istream &, VERTEXTRUTH &x)
std::istreamoperator>> (std::istream &, VERTEXTRUTH &x)

Constructor & Destructor Documentation

VERTEXTRUTH::VERTEXTRUTH  )  [inline]
 

00083 {};

VERTEXTRUTH::VERTEXTRUTH  )  [inline]
 

00083 {};

VERTEXTRUTH::VERTEXTRUTH  )  [inline]
 

00083 {};

VERTEXTRUTH::VERTEXTRUTH  )  [inline]
 

00083 {};


Member Function Documentation

void Tagged::check_end_tag std::istream is,
const char *  tag
[protected, inherited]
 

void Tagged::check_end_tag std::istream is,
const char *  tag
[protected, inherited]
 

void Tagged::check_end_tag std::istream is,
const char *  tag
[protected, inherited]
 

void Tagged::check_end_tag std::istream is,
const char *  tag
[inline, protected, inherited]
 

00109 {
00110     char c; 
00111     is >> c;
00112     if(c != '}') 
00113         throw AsciiNoEndChar();
00114 
00115     std::string in_tag;
00116     is >> in_tag;
00117     if(in_tag != tag) 
00118         throw AsciiWrongEndTag(tag, in_tag);
00119 }

void Tagged::check_start_tag std::istream is,
const char *  tag
[protected, inherited]
 

void Tagged::check_start_tag std::istream is,
const char *  tag
[protected, inherited]
 

void Tagged::check_start_tag std::istream is,
const char *  tag
[protected, inherited]
 

void Tagged::check_start_tag std::istream is,
const char *  tag
[inline, protected, inherited]
 

00082 { 
00083     // read input, check for '{' character
00084     char c; 
00085     if(!(is >> c) || (c != '{')) {
00086         throw AsciiNoStartChar();
00087     }
00088 
00089     // compare tags
00090     std::string in_tag;
00091     is >> in_tag;
00092     if(in_tag != tag) 
00093       throw AsciiWrongStartTag(tag, in_tag);
00094 
00095     // check for empty block
00096     is >> c;
00097     if(c == '}') {
00098         is >> in_tag;
00099         if(in_tag != tag) 
00100             throw AsciiWrongEndTag(tag, in_tag);
00101     } else {
00102         is.putback(c); 
00103         set_initialized();
00104     }
00105 }

bool Tagged::initialized  )  const [inherited]
 

bool Tagged::initialized  )  const [inherited]
 

bool Tagged::initialized  )  const [inherited]
 

bool Tagged::initialized  )  const [inline, inherited]
 

00064 {
00065     return m_initialized;
00066 }

void Tagged::set_initialized  )  [inherited]
 

void Tagged::set_initialized  )  [inherited]
 

void Tagged::set_initialized  )  [inherited]
 

void Tagged::set_initialized  )  [inline, inherited]
 

00070 { 
00071     m_initialized = true; 
00072 }

void Tagged::unset_initalized  )  [inherited]
 

void Tagged::unset_initalized  )  [inherited]
 

void Tagged::unset_initalized  )  [inherited]
 

void Tagged::unset_initalized  )  [inline, inherited]
 

00076 { 
00077     m_initialized = false; 
00078 }


Friends And Related Function Documentation

std::ostream& operator<< std::ostream os,
const VERTEXTRUTH x
[friend]
 

00169 {
00170     os << std::endl << "{ VERTEXTRUTH" << std::endl;
00171     if(x.initialized()) {
00172     os << " " << x.nTruth;
00173     {for(int i = 0; i < x.nTruth; i++) {
00174         os << " " << x.truthCol[i];
00175     }}
00176     }
00177     os << std::endl << "} VERTEXTRUTH" << std::endl;
00178     return os;
00179 }

std::ostream& operator<< std::ostream os,
const VERTEXTRUTH x
[friend]
 

00169 {
00170     os << std::endl << "{ VERTEXTRUTH" << std::endl;
00171     if(x.initialized()) {
00172     os << " " << x.nTruth;
00173     {for(int i = 0; i < x.nTruth; i++) {
00174         os << " " << x.truthCol[i];
00175     }}
00176     }
00177     os << std::endl << "} VERTEXTRUTH" << std::endl;
00178     return os;
00179 }

std::ostream& operator<< std::ostream os,
const VERTEXTRUTH x
[friend]
 

00169 {
00170     os << std::endl << "{ VERTEXTRUTH" << std::endl;
00171     if(x.initialized()) {
00172     os << " " << x.nTruth;
00173     {for(int i = 0; i < x.nTruth; i++) {
00174         os << " " << x.truthCol[i];
00175     }}
00176     }
00177     os << std::endl << "} VERTEXTRUTH" << std::endl;
00178     return os;
00179 }

std::ostream& operator<< std::ostream os,
const VERTEXTRUTH x
[friend]
 

00169 {
00170     os << std::endl << "{ VERTEXTRUTH" << std::endl;
00171     if(x.initialized()) {
00172     os << " " << x.nTruth;
00173     {for(int i = 0; i < x.nTruth; i++) {
00174         os << " " << x.truthCol[i];
00175     }}
00176     }
00177     os << std::endl << "} VERTEXTRUTH" << std::endl;
00178     return os;
00179 }

std::istream& operator>> std::istream is,
VERTEXTRUTH x
[friend]
 

00156 {
00157     x.check_start_tag(is,"VERTEXTRUTH");
00158     if(!x.initialized()) return is;
00159     is >> x.nTruth;
00160     x.truthCol.resize(x.nTruth);
00161     {for(int i = 0; i < x.nTruth; i++) {
00162         is >> x.truthCol[i];
00163     }}
00164     x.check_end_tag(is, "VERTEXTRUTH");
00165     return is;
00166 }

std::istream& operator>> std::istream is,
VERTEXTRUTH x
[friend]
 

00156 {
00157     x.check_start_tag(is,"VERTEXTRUTH");
00158     if(!x.initialized()) return is;
00159     is >> x.nTruth;
00160     x.truthCol.resize(x.nTruth);
00161     {for(int i = 0; i < x.nTruth; i++) {
00162         is >> x.truthCol[i];
00163     }}
00164     x.check_end_tag(is, "VERTEXTRUTH");
00165     return is;
00166 }

std::istream& operator>> std::istream is,
VERTEXTRUTH x
[friend]
 

00156 {
00157     x.check_start_tag(is,"VERTEXTRUTH");
00158     if(!x.initialized()) return is;
00159     is >> x.nTruth;
00160     x.truthCol.resize(x.nTruth);
00161     {for(int i = 0; i < x.nTruth; i++) {
00162         is >> x.truthCol[i];
00163     }}
00164     x.check_end_tag(is, "VERTEXTRUTH");
00165     return is;
00166 }

std::istream& operator>> std::istream is,
VERTEXTRUTH x
[friend]
 

00156 {
00157     x.check_start_tag(is,"VERTEXTRUTH");
00158     if(!x.initialized()) return is;
00159     is >> x.nTruth;
00160     x.truthCol.resize(x.nTruth);
00161     {for(int i = 0; i < x.nTruth; i++) {
00162         is >> x.truthCol[i];
00163     }}
00164     x.check_end_tag(is, "VERTEXTRUTH");
00165     return is;
00166 }


Member Data Documentation

int VERTEXTRUTH::nTruth
 

std::vector<VertexTruthType> VERTEXTRUTH::truthCol
 

std::vector<VertexTruthType> VERTEXTRUTH::truthCol
 

std::vector<VertexTruthType> VERTEXTRUTH::truthCol
 

std::vector<VertexTruthType> VERTEXTRUTH::truthCol
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 19:14:01 2011 for BOSS6.5.5 by  doxygen 1.3.9.1