ANL_CBUF Class Reference

#include <anl_cbuf.h>

Collaboration diagram for ANL_CBUF:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ANL_CBUF (MEM_POOL *pool)
 ANL_CBUF (MEM_POOL *pool, UINT chunk_size, UINT size)
 ANL_CBUF (MEM_POOL *pool, const char *s)
 ~ANL_CBUF ()
void Set_Linesplit (const char *continuation, const char *splitchars, mUINT32 max_linelength)
void Reset_Linesplit ()
void Reset ()
void Reduce_Size (UINT by_amount)
void Write_Char (char c)
void Write_String (const char *s)
void Write_Int (INT64 i)
void Append_Pragma_Preamble (BOOL is_omp, BOOL lower_case)
UINT Size () const
const char * Chars () const

Private Member Functions

UINT _A_Number_Of_Chunks (UINT size)
char * _Alloc (UINT size)
BOOL _Is_Splitc (char splitc)
void _Split ()

Private Attributes

const char * _splitchars
const char * _continuation
UINT32 _max_linelength
UINT32 _linelength
UINT32 _chunk_size
UINT _size
UINT _next
char * _buf
MEM_POOL_pool

Detailed Description

Definition at line 65 of file anl_cbuf.h.


Constructor & Destructor Documentation

ANL_CBUF::ANL_CBUF ( MEM_POOL pool  )  [inline]

Definition at line 106 of file anl_cbuf.h.

ANL_CBUF::ANL_CBUF ( MEM_POOL pool,
UINT  chunk_size,
UINT  size 
) [inline]

Definition at line 118 of file anl_cbuf.h.

References _A_Number_Of_Chunks(), _Alloc(), _buf, _chunk_size, _size, and CBUF_SMALLEST_ALLOC_SIZE.

Here is the call graph for this function:

ANL_CBUF::ANL_CBUF ( MEM_POOL pool,
const char *  s 
)

Definition at line 87 of file anl_cbuf.cxx.

References _A_Number_Of_Chunks(), _Alloc(), _buf, _linelength, _next, _size, INT, and NULL.

Here is the call graph for this function:

ANL_CBUF::~ANL_CBUF (  )  [inline]

Definition at line 137 of file anl_cbuf.h.

References _buf, _pool, _size, and CXX_DELETE_ARRAY.


Member Function Documentation

UINT ANL_CBUF::_A_Number_Of_Chunks ( UINT  size  )  [inline, private]

Definition at line 79 of file anl_cbuf.h.

References _chunk_size.

Referenced by ANL_CBUF(), and Write_String().

char* ANL_CBUF::_Alloc ( UINT  size  )  [inline, private]

Definition at line 84 of file anl_cbuf.h.

References _pool, buf, CXX_NEW_ARRAY, and NULL.

Referenced by ANL_CBUF(), Write_Char(), and Write_String().

BOOL ANL_CBUF::_Is_Splitc ( char  splitc  )  [private]

Definition at line 44 of file anl_cbuf.cxx.

References _splitchars, and INT.

Referenced by _Split().

void ANL_CBUF::_Split (  )  [private]

Definition at line 55 of file anl_cbuf.cxx.

References _buf, _continuation, _Is_Splitc(), _linelength, _max_linelength, _next, _pool, Chars(), INT, and Write_String().

Referenced by Write_Char(), and Write_String().

Here is the call graph for this function:

void ANL_CBUF::Append_Pragma_Preamble ( BOOL  is_omp,
BOOL  lower_case 
)
const char* ANL_CBUF::Chars (  )  const [inline]
void ANL_CBUF::Reduce_Size ( UINT  by_amount  )  [inline]

Definition at line 170 of file anl_cbuf.h.

References _buf, and _next.

void ANL_CBUF::Reset (  )  [inline]

Definition at line 165 of file anl_cbuf.h.

References _next.

Referenced by ANL_FUNC_ENTRY::Emit_Original_Construct(), and ANL_VARLIST::Write().

void ANL_CBUF::Reset_Linesplit (  )  [inline]

Definition at line 158 of file anl_cbuf.h.

References _continuation, _max_linelength, _splitchars, and UINT32_MAX.

void ANL_CBUF::Set_Linesplit ( const char *  continuation,
const char *  splitchars,
mUINT32  max_linelength 
) [inline]

Definition at line 145 of file anl_cbuf.h.

References _continuation, _max_linelength, and _splitchars.

UINT ANL_CBUF::Size ( void   )  const [inline]
void ANL_CBUF::Write_Char ( char  c  ) 
void ANL_CBUF::Write_Int ( INT64  i  )  [inline]
void ANL_CBUF::Write_String ( const char *  s  ) 

Member Data Documentation

char* ANL_CBUF::_buf [private]

Definition at line 76 of file anl_cbuf.h.

Referenced by _Split(), ANL_CBUF(), Chars(), Reduce_Size(), Write_Char(), Write_String(), and ~ANL_CBUF().

Definition at line 73 of file anl_cbuf.h.

Referenced by _A_Number_Of_Chunks(), ANL_CBUF(), and Write_Char().

const char* ANL_CBUF::_continuation [private]

Definition at line 70 of file anl_cbuf.h.

Referenced by _Split(), Reset_Linesplit(), and Set_Linesplit().

Definition at line 72 of file anl_cbuf.h.

Referenced by _Split(), ANL_CBUF(), Write_Char(), and Write_String().

Definition at line 71 of file anl_cbuf.h.

Referenced by _Split(), Reset_Linesplit(), Set_Linesplit(), Write_Char(), and Write_String().

UINT ANL_CBUF::_next [private]

Definition at line 75 of file anl_cbuf.h.

Referenced by _Split(), ANL_CBUF(), Reduce_Size(), Reset(), Size(), Write_Char(), and Write_String().

Definition at line 77 of file anl_cbuf.h.

Referenced by _Alloc(), _Split(), Write_Char(), Write_String(), and ~ANL_CBUF().

UINT ANL_CBUF::_size [private]

Definition at line 74 of file anl_cbuf.h.

Referenced by ANL_CBUF(), Write_Char(), Write_String(), and ~ANL_CBUF().

const char* ANL_CBUF::_splitchars [private]

Definition at line 69 of file anl_cbuf.h.

Referenced by _Is_Splitc(), Reset_Linesplit(), and Set_Linesplit().


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

Generated on Tue Nov 17 06:37:31 2009 for Open64 (mfef90, whirl2f, and IR tools) by  doxygen 1.6.1