#include <anl_cbuf.h>

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 |
Definition at line 65 of file anl_cbuf.h.
| ANL_CBUF::ANL_CBUF | ( | MEM_POOL * | pool | ) | [inline] |
Definition at line 106 of file anl_cbuf.h.
Definition at line 118 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 87 of file anl_cbuf.cxx.
References _A_Number_Of_Chunks(), _Alloc(), _buf, _linelength, _next, _size, INT, and NULL.

| ANL_CBUF::~ANL_CBUF | ( | ) | [inline] |
Definition at line 137 of file anl_cbuf.h.
References _buf, _pool, _size, and CXX_DELETE_ARRAY.
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().

Definition at line 197 of file anl_cbuf.cxx.
References Write_Char(), and Write_String().
Referenced by ANL_LOOP_CONSTRUCT::_Write_Loop_Directive(), ANL_PRAGMA_CONSTRUCT::_Write_Pragma_Directives(), ANL_REGION_CONSTRUCT::_Write_Region_Directive(), ANL_REGION_CONSTRUCT::Write(), and ANL_PRAGMA_CONSTRUCT::Write().

| const char* ANL_CBUF::Chars | ( | ) | const [inline] |
Definition at line 193 of file anl_cbuf.h.
References _buf.
Referenced by _Split(), ANL_PRAGMA_CONSTRUCT::_Write_Pragma_Directives(), ANL_FUNC_ENTRY::Emit_Original_Construct(), ANL_VARLIST::Insert_Var_Refs(), ANL_VARLIST::Write(), ANL_REGION_CONSTRUCT::Write(), ANL_PRAGMA_CONSTRUCT::Write(), and ANL_LOOP_CONSTRUCT::Write().
| void ANL_CBUF::Reduce_Size | ( | UINT | by_amount | ) | [inline] |
Definition at line 170 of file anl_cbuf.h.
| 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] |
Definition at line 192 of file anl_cbuf.h.
References _next.
Referenced by ANL_FUNC_ENTRY::Emit_Original_Construct(), ANL_VARLIST::Write(), ANL_REGION_CONSTRUCT::Write(), ANL_PRAGMA_CONSTRUCT::Write(), and ANL_LOOP_CONSTRUCT::Write().
| void ANL_CBUF::Write_Char | ( | char | c | ) |
Definition at line 124 of file anl_cbuf.cxx.
References _Alloc(), _buf, _chunk_size, _linelength, _max_linelength, _next, _pool, _size, _Split(), CXX_DELETE_ARRAY, and strcpy.
Referenced by ANL_PRAGMA_ATTRIBUTE::_Append_Arg_Numbers(), W2CF_TRANSLATOR::_Array_Segment_To_String(), W2CF_TRANSLATOR::_Clause_Exprs_To_String(), W2CF_TRANSLATOR::_Clause_Symbols_To_String(), W2CF_TRANSLATOR::_Get_Ftn_Name(), ANL_FUNC_ENTRY::_Push_Construct_Level(), W2CF_TRANSLATOR::_Rev_Clause_Exprs_To_String(), ANL_PRAGMA_ATTRIBUTE::_Write_Distribution(), ANL_LOOP_CONSTRUCT::_Write_Loop_Directive(), ANL_LOOP_CONSTRUCT::_Write_Loop_Header(), ANL_PRAGMA_ATTRIBUTE::_Write_Pragma(), ANL_PRAGMA_ATTRIBUTE::_Write_Pragma_Arguments(), ANL_PRAGMA_CONSTRUCT::_Write_Pragma_Directives(), ANL_REGION_CONSTRUCT::_Write_Region_Directive(), Append_Pragma_Preamble(), ANL_FUNC_ENTRY::Emit_Original_Construct(), W2CF_TRANSLATOR::Nest_Clauses_To_String(), W2CF_TRANSLATOR::Prefetch_Attributes_To_String(), ANL_VARLIST::Write(), ANL_VAR::Write(), ANL_SRCPOS::Write(), ANL_REGION_CONSTRUCT::Write(), ANL_PRAGMA_CONSTRUCT::Write(), ANL_PRAGMA_ATTRIBUTE::Write(), ANL_LOOP_CONSTRUCT::Write(), and Write_Sclass().

| void ANL_CBUF::Write_Int | ( | INT64 | i | ) | [inline] |
Definition at line 180 of file anl_cbuf.h.
References s, and Write_String().
Referenced by ANL_PRAGMA_ATTRIBUTE::_Append_Arg_Numbers(), W2CF_TRANSLATOR::_Array_Segment_To_String(), ANL_LOOP_CONSTRUCT::_Write_Loop_Directive(), ANL_LOOP_CONSTRUCT::_Write_Loop_Header(), ANL_PRAGMA_CONSTRUCT::_Write_Pragma_Directives(), ANL_REGION_CONSTRUCT::_Write_Region_Directive(), ANL_FUNC_ENTRY::Emit_Original_Construct(), W2CF_TRANSLATOR::Prefetch_Attributes_To_String(), ANL_VARLIST::Write(), ANL_REGION_CONSTRUCT::Write(), ANL_PRAGMA_CONSTRUCT::Write(), ANL_PRAGMA_ATTRIBUTE::Write(), ANL_LOOP_CONSTRUCT::Write(), ANL_SRCPOS::Write_Column(), ANL_SRCPOS::Write_Filenum(), and ANL_SRCPOS::Write_Linenum().

| void ANL_CBUF::Write_String | ( | const char * | s | ) |
Definition at line 151 of file anl_cbuf.cxx.
References _A_Number_Of_Chunks(), _Alloc(), _buf, _linelength, _max_linelength, _next, _pool, _size, _Split(), CXX_DELETE_ARRAY, INT, len, NULL, and strcpy.
Referenced by ANL_PRAGMA_ATTRIBUTE::_Append_Arg_Numbers(), W2CF_TRANSLATOR::_Array_Segment_To_String(), W2CF_TRANSLATOR::_Clause_Exprs_To_String(), W2CF_TRANSLATOR::_Clause_Symbols_To_String(), W2CF_TRANSLATOR::_Default_Kind_To_String(), W2CF_TRANSLATOR::_Get_Ftn_Name(), W2CF_TRANSLATOR::_Istore_Lhs_To_String(), W2CF_TRANSLATOR::_Mp_Schedtype_To_String(), W2CF_TRANSLATOR::_Rev_Clause_Exprs_To_String(), _Split(), ANL_PRAGMA_ATTRIBUTE::_Write_Distribution(), ANL_LOOP_CONSTRUCT::_Write_Loop_Directive(), ANL_LOOP_CONSTRUCT::_Write_Loop_Header(), ANL_PRAGMA_ATTRIBUTE::_Write_Pragma(), ANL_PRAGMA_CONSTRUCT::_Write_Pragma_Directives(), ANL_REGION_CONSTRUCT::_Write_Region_Directive(), Append_Pragma_Preamble(), W2CF_TRANSLATOR::ClauseList_To_String(), ANL_FUNC_ENTRY::Emit_Original_Construct(), W2CF_TRANSLATOR::Expr_To_String(), W2CF_TRANSLATOR::Nest_Clauses_To_String(), W2CF_TRANSLATOR::Original_Symname_To_String(), W2CF_TRANSLATOR::Prefetch_Attributes_To_String(), W2CF_TRANSLATOR::Stid_Lhs_To_String(), W2CF_TRANSLATOR::Transformed_Symname_To_String(), ANL_VARLIST::Write(), ANL_VAR::Write(), ANL_REGION_CONSTRUCT::Write(), ANL_PRAGMA_CONSTRUCT::Write(), ANL_PRAGMA_ATTRIBUTE::Write(), ANL_LOOP_CONSTRUCT::Write(), and Write_Int().

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().
UINT32 ANL_CBUF::_chunk_size [private] |
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().
UINT32 ANL_CBUF::_linelength [private] |
Definition at line 72 of file anl_cbuf.h.
Referenced by _Split(), ANL_CBUF(), Write_Char(), and Write_String().
UINT32 ANL_CBUF::_max_linelength [private] |
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().
MEM_POOL* ANL_CBUF::_pool [private] |
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().
1.6.1