ROSE  0.9.6a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ROSEAttributesList Class Reference

#include <rose_attributes_list.h>

Collaboration diagram for ROSEAttributesList:

Public Types

enum  languageTypeEnum {
  e_unknown_language = 0,
  e_C_language = 1,
  e_Cxx_language = 2,
  e_Fortran77_language = 3,
  e_Fortran9x_language = 4,
  e_lastLanguage
}
 

Public Member Functions

 ROSEAttributesList ()
 
 ~ROSEAttributesList ()
 
void addElement (PreprocessingInfo::DirectiveType, const std::string &pLine, const std::string &filename, int lineNumber, int columnNumber, int numberOfLines)
 
void addElement (PreprocessingInfo &pRef)
 
void moveElements (ROSEAttributesList &)
 
void insertElement (PreprocessingInfo &pRef)
 
void setFileName (const std::string &fName)
 
std::string getFileName ()
 
void setIndex (int i)
 
int getIndex ()
 
PreprocessingInfooperator[] (int i)
 
int size (void)
 
int getLength (void)
 
void deepClean (void)
 
void clean (void)
 
std::vector< PreprocessingInfo * > & getList ()
 
void display (const std::string &label)
 
void set_rawTokenStream (LexTokenStreamTypePointer s)
 
LexTokenStreamTypePointer get_rawTokenStream ()
 
void generatePreprocessorDirectivesAndCommentsForAST (const std::string &filename)
 
void collectPreprocessorDirectivesAndCommentsForAST (const std::string &filename, languageTypeEnum languageType)
 
bool isFortran77Comment (const std::string &line)
 
bool isFortran90Comment (const std::string &line)
 
bool isCppDirective (const std::string &line, PreprocessingInfo::DirectiveType &cppDeclarationKind, std::string &restOfTheLine)
 
void generateFileIdListFromLineDirectives ()
 
std::set< int > & get_filenameIdSet ()
 
PreprocessingInfolastElement ()
 

Private Attributes

std::vector< PreprocessingInfo * > attributeList
 
LexTokenStreamTypePointer rawTokenStream
 
std::string fileName
 
int index
 
std::set< int > filenameIdSet
 

Detailed Description

Definition at line 449 of file rose_attributes_list.h.

Member Enumeration Documentation

Enumerator
e_unknown_language 
e_C_language 
e_Cxx_language 
e_Fortran77_language 
e_Fortran9x_language 
e_lastLanguage 

Definition at line 475 of file rose_attributes_list.h.

Constructor & Destructor Documentation

ROSEAttributesList::ROSEAttributesList ( )
ROSEAttributesList::~ROSEAttributesList ( )

Member Function Documentation

void ROSEAttributesList::addElement ( PreprocessingInfo::DirectiveType  ,
const std::string &  pLine,
const std::string &  filename,
int  lineNumber,
int  columnNumber,
int  numberOfLines 
)
void ROSEAttributesList::addElement ( PreprocessingInfo pRef)
void ROSEAttributesList::moveElements ( ROSEAttributesList )
void ROSEAttributesList::insertElement ( PreprocessingInfo pRef)
void ROSEAttributesList::setFileName ( const std::string &  fName)
std::string ROSEAttributesList::getFileName ( )
void ROSEAttributesList::setIndex ( int  i)
int ROSEAttributesList::getIndex ( )
PreprocessingInfo* ROSEAttributesList::operator[] ( int  i)
int ROSEAttributesList::size ( void  )
int ROSEAttributesList::getLength ( void  )
void ROSEAttributesList::deepClean ( void  )
void ROSEAttributesList::clean ( void  )
std::vector<PreprocessingInfo*>& ROSEAttributesList::getList ( )
inline

Definition at line 522 of file rose_attributes_list.h.

References attributeList.

void ROSEAttributesList::display ( const std::string &  label)
void ROSEAttributesList::set_rawTokenStream ( LexTokenStreamTypePointer  s)
LexTokenStreamTypePointer ROSEAttributesList::get_rawTokenStream ( )
void ROSEAttributesList::generatePreprocessorDirectivesAndCommentsForAST ( const std::string &  filename)
void ROSEAttributesList::collectPreprocessorDirectivesAndCommentsForAST ( const std::string &  filename,
languageTypeEnum  languageType 
)
bool ROSEAttributesList::isFortran77Comment ( const std::string &  line)
bool ROSEAttributesList::isFortran90Comment ( const std::string &  line)
bool ROSEAttributesList::isCppDirective ( const std::string &  line,
PreprocessingInfo::DirectiveType cppDeclarationKind,
std::string &  restOfTheLine 
)
void ROSEAttributesList::generateFileIdListFromLineDirectives ( )
std::set<int>& ROSEAttributesList::get_filenameIdSet ( )
PreprocessingInfo* ROSEAttributesList::lastElement ( )

Member Data Documentation

std::vector<PreprocessingInfo*> ROSEAttributesList::attributeList
private

Definition at line 453 of file rose_attributes_list.h.

Referenced by getList().

LexTokenStreamTypePointer ROSEAttributesList::rawTokenStream
private

Definition at line 455 of file rose_attributes_list.h.

std::string ROSEAttributesList::fileName
private

Definition at line 459 of file rose_attributes_list.h.

int ROSEAttributesList::index
private

Definition at line 467 of file rose_attributes_list.h.

std::set<int> ROSEAttributesList::filenameIdSet
private

Definition at line 471 of file rose_attributes_list.h.


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