ANL_CBUF Module Reference

#include <anl_cbuf.h>

Collaboration diagram for ANL_CBUF:

Collaboration graph
[legend]

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 70 of file anl_cbuf.h.


Constructor & Destructor Documentation

ANL_CBUF::ANL_CBUF ( MEM_POOL pool  )  [inline]

Definition at line 111 of file anl_cbuf.h.

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

Definition at line 123 of file anl_cbuf.h.

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

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

Definition at line 93 of file anl_cbuf.cxx.

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

ANL_CBUF::~ANL_CBUF (  )  [inline]

Definition at line 142 of file anl_cbuf.h.

References _buf, _pool, _size, and CXX_DELETE_ARRAY.


Member Function/Subroutine Documentation

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

Definition at line 84 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 89 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 50 of file anl_cbuf.cxx.

References _splitchars, i, and INT.

Referenced by _Split().

void ANL_CBUF::_Split (  )  [private]

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

Definition at line 150 of file anl_cbuf.h.

References _continuation, _max_linelength, and _splitchars.

void ANL_CBUF::Reset_Linesplit (  )  [inline]

Definition at line 163 of file anl_cbuf.h.

References _continuation, _max_linelength, and _splitchars.

void ANL_CBUF::Reset (  )  [inline]

Definition at line 170 of file anl_cbuf.h.

References _next.

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

void ANL_CBUF::Reduce_Size ( UINT  by_amount  )  [inline]

Definition at line 175 of file anl_cbuf.h.

References _buf, and _next.

void ANL_CBUF::Write_Char ( char  c  ) 

void ANL_CBUF::Write_String ( const char *  s  ) 

void ANL_CBUF::Write_Int ( INT64  i  )  [inline]

void ANL_CBUF::Append_Pragma_Preamble ( BOOL  is_omp,
BOOL  lower_case 
)

UINT ANL_CBUF::Size ( void   )  const [inline]

const char* ANL_CBUF::Chars (  )  const [inline]


Field Documentation

const char* ANL_CBUF::_splitchars [private]

Definition at line 74 of file anl_cbuf.h.

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

const char* ANL_CBUF::_continuation [private]

Definition at line 75 of file anl_cbuf.h.

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

Definition at line 76 of file anl_cbuf.h.

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

Definition at line 77 of file anl_cbuf.h.

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

Definition at line 78 of file anl_cbuf.h.

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

UINT ANL_CBUF::_size [private]

Definition at line 79 of file anl_cbuf.h.

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

UINT ANL_CBUF::_next [private]

Definition at line 80 of file anl_cbuf.h.

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

char* ANL_CBUF::_buf [private]

Definition at line 81 of file anl_cbuf.h.

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

Definition at line 82 of file anl_cbuf.h.

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


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

Generated on Wed Apr 8 16:23:51 2009 for Open64 by  doxygen 1.5.6