|
|
/* */ | /* */ |
/************************************************************************/ | /************************************************************************/ |
| |
|
class EST_ChunkPtr; |
|
|
class EST_Chunk { | class EST_Chunk { |
public: | public: |
typedef unsigned short use_counter; | typedef unsigned short use_counter; |
|
|
/* */ | /* */ |
/************************************************************************/ | /************************************************************************/ |
| |
|
EST_ChunkPtr chunk_allocate(int bytes); |
|
EST_ChunkPtr chunk_allocate(int bytes, const char *initial, int initial_len); |
|
EST_ChunkPtr chunk_allocate(int bytes, const EST_ChunkPtr &initial, int initial_start, int initial_len); |
|
|
|
void make_updatable(EST_ChunkPtr &shared, EST_Chunk::EST_chunk_size inuse); |
|
void make_updatable(EST_ChunkPtr &shared); |
|
|
class EST_ChunkPtr { | class EST_ChunkPtr { |
private: | private: |
EST_Chunk *ptr; | EST_Chunk *ptr; |
|
Lines 79-84
use we envisage. Traversal of the items
|
Link Here
|
|---|
|
| |
*/ | */ |
| |
|
class EST_Item; |
|
int same_item(const EST_Item *l1,const EST_Item *l2); |
|
|
class EST_Item | class EST_Item |
{ | { |
private: | private: |
|
Lines 89-95
EST_Pathname EST_Pathname::as_directory(
|
Link Here
|
|---|
|
return *this; | return *this; |
| |
if (length() > 0) | if (length() > 0) |
return ::operator +(EST_String(*this), "/"); |
return EST_String(*this) + "/"; |
| |
return "./"; | return "./"; |
} | } |
|
|
CLfile *get_fileitem(const EST_String &name) | CLfile *get_fileitem(const EST_String &name) |
{ return (CLfile *)fileindex.lookup(name); } | { return (CLfile *)fileindex.lookup(name); } |
void load_coefs_sig(EST_Item *unit); | void load_coefs_sig(EST_Item *unit); |
CLfile *CLDB::get_file_coefs_sig(const EST_String &fileid); |
CLfile *get_file_coefs_sig(const EST_String &fileid); |
void load_join_coefs(CLunit *unit); | void load_join_coefs(CLunit *unit); |
CLfile *CLDB::get_file_join_coefs(const EST_String &fileid); |
CLfile *get_file_join_coefs(const EST_String &fileid); |
}; | }; |
| |
| |
|
|
/** Object oriented approach for better and for worse... | /** Object oriented approach for better and for worse... |
*/ | */ |
| |
|
#include <ostream> |
#include "EST_TList.h" | #include "EST_TList.h" |
#include "ling_class/EST_Item.h" | #include "ling_class/EST_Item.h" |
| |
class EST_JoinCost; | class EST_JoinCost; |
class ostream; |
|
| |
class EST_JoinCostCache { | class EST_JoinCostCache { |
public: | public: |