#include <cccc_utl.h>
|
| ParseStore (const string &filename) |
|
| ~ParseStore () |
|
void | IncrementCount (LexicalCount lc) |
|
void | endOfLine (int line) |
|
void | record_module_extent (int startLine, int endLine, const string &moduleName, const string &moduleType, const string &description, UseType ut) |
|
void | record_function_extent (int startLine, int endLine, const string &returnType, const string &moduleName, const string &memberName, const string ¶mList, const string &description, Visibility visibility, UseType ut) |
|
void | record_userel_extent (int startLine, int endLine, const string &clientName, const string &memberName, const string &serverName, const string &description, Visibility visibility, UseType ut) |
|
void | record_other_extent (int startLine, int endLine, const string &description) |
|
void | record_file_balance_extent (string) |
|
void | insert_extent (CCCC_Item &, int, int, const string &, const string &, UseType, bool allocate_lexcounts) |
|
int | get_flag (PSFlag) const |
|
void | set_flag (PSFlag, int) |
|
void | set_flag (Visibility) |
|
Visibility | get_visibility () |
|
string | filename () |
|
char * | flags () |
|
Definition at line 209 of file cccc_utl.h.
ParseStore::ParseStore |
( |
const string & |
filename | ) |
|
Definition at line 234 of file cccc_utl.cc.
LexicalCountArray pendingLexicalCounts
static ParseStore * theCurrentInstance
ParseStore::~ParseStore |
( |
| ) |
|
Definition at line 249 of file cccc_utl.cc.
static ParseStore * theCurrentInstance
static ParseStore* ParseStore::currentInstance |
( |
| ) |
|
|
inlinestatic |
Definition at line 269 of file cccc_utl.h.
static ParseStore * theCurrentInstance
void ParseStore::endOfLine |
( |
int |
line | ) |
|
Definition at line 587 of file cccc_utl.cc.
596 LineLexicalCountMatrix::value_type
599 for(
int i=0; i<
tcLAST; i++)
std::vector< int > LexicalCountArray
LineLexicalCountMatrix lineLexicalCounts
LexicalCountArray pendingLexicalCounts
string ParseStore::filename |
( |
| ) |
|
char* ParseStore::flags |
( |
| ) |
|
|
inline |
int ParseStore::get_flag |
( |
PSFlag |
psf | ) |
const |
Definition at line 215 of file cccc_utl.h.
LexicalCountArray pendingLexicalCounts
void ParseStore::insert_extent |
( |
CCCC_Item & |
os, |
|
|
int |
startLine, |
|
|
int |
endLine, |
|
|
const string & |
description, |
|
|
const string & |
flags, |
|
|
UseType |
ut, |
|
|
bool |
allocate_lexcounts |
|
) |
| |
Definition at line 288 of file cccc_utl.cc.
297 int lexical_counts_for_this_extent[
tcLAST];
300 lexical_counts_for_this_extent[i]=0;
303 if(allocate_lexcounts==
true)
305 LineLexicalCountMatrix::iterator extentStartIter =
307 LineLexicalCountMatrix::iterator extentEndIter =
309 LineLexicalCountMatrix::iterator llcmIter;
310 for(llcmIter=extentStartIter;
311 llcmIter!=extentEndIter;
318 lexical_counts_for_this_extent[i]+=(*llcmIter).second[i];
329 ostringstream lexcount_str;
331 lexcount_str <<
"LOC:" << lexical_counts_for_this_extent[
tcCODELINES]
332 <<
" COM:" << lexical_counts_for_this_extent[
tcCOMLINES]
333 <<
" MVG:" << lexical_counts_for_this_extent[
tcMCCABES_VG]
336 os.
Insert(lexcount_str.str().c_str());
bool Insert(const string &s)
LineLexicalCountMatrix lineLexicalCounts
void ParseStore::record_file_balance_extent |
( |
string |
| ) |
|
void ParseStore::record_function_extent |
( |
int |
startLine, |
|
|
int |
endLine, |
|
|
const string & |
returnType, |
|
|
const string & |
moduleName, |
|
|
const string & |
memberName, |
|
|
const string & |
paramList, |
|
|
const string & |
description, |
|
|
Visibility |
visibility, |
|
|
UseType |
ut |
|
) |
| |
Definition at line 368 of file cccc_utl.cc.
379 if(memberName.size()>0)
384 string mappedModuleName = moduleName;
385 if(mappedModuleName.size()==0)
387 mappedModuleName =
"anonymous";
391 function_line.
Insert(mappedModuleName);
392 function_line.
Insert(memberName);
393 function_line.
Insert(returnType);
394 function_line.
Insert(paramList);
396 string baseFlags=
flags();
400 description,baseFlags,ut,
true);
bool Insert(const string &s)
void add_member(CCCC_Item &member_data_line)
void insert_extent(CCCC_Item &, int, int, const string &, const string &, UseType, bool allocate_lexcounts)
void ParseStore::record_module_extent |
( |
int |
startLine, |
|
|
int |
endLine, |
|
|
const string & |
moduleName, |
|
|
const string & |
moduleType, |
|
|
const string & |
description, |
|
|
UseType |
ut |
|
) |
| |
Definition at line 349 of file cccc_utl.cc.
357 if(moduleName.size()>0)
360 module_line.
Insert(moduleName);
361 module_line.
Insert(moduleType);
363 description,
flags(),ut,
true);
bool Insert(const string &s)
void add_module(CCCC_Item &module_data_line)
void insert_extent(CCCC_Item &, int, int, const string &, const string &, UseType, bool allocate_lexcounts)
void ParseStore::record_other_extent |
( |
int |
startLine, |
|
|
int |
endLine, |
|
|
const string & |
description |
|
) |
| |
Definition at line 452 of file cccc_utl.cc.
void add_rejected_extent(CCCC_Item &rejected_data_line)
void insert_extent(CCCC_Item &, int, int, const string &, const string &, UseType, bool allocate_lexcounts)
void ParseStore::record_userel_extent |
( |
int |
startLine, |
|
|
int |
endLine, |
|
|
const string & |
clientName, |
|
|
const string & |
memberName, |
|
|
const string & |
serverName, |
|
|
const string & |
description, |
|
|
Visibility |
visibility, |
|
|
UseType |
ut |
|
) |
| |
Definition at line 405 of file cccc_utl.cc.
424 if(clientName.size()>0 && serverName.size()>0)
426 userel_line.
Insert(clientName);
427 userel_line.
Insert(memberName);
428 userel_line.
Insert(serverName);
433 bool record_lexcounts=
false;
438 record_lexcounts=
true;
441 record_lexcounts=
false;
444 string baseFlags=
flags();
447 description,baseFlags,ut,record_lexcounts);
bool Insert(const string &s)
void insert_extent(CCCC_Item &, int, int, const string &, const string &, UseType, bool allocate_lexcounts)
void add_userel(CCCC_Item &use_data_line)
void ParseStore::set_flag |
( |
PSFlag |
psf, |
|
|
int |
value |
|
) |
| |
Definition at line 269 of file cccc_utl.cc.
#define RELEASE_STRSTREAM(X)
#define MAKE_STRSTREAM(X)
string ParseStore::theFilename |
|
private |
The documentation for this class was generated from the following files: