- Main Page
- Namespaces
- Classes
- Files

# D:/projects/ACE/proto/Source/word.cpp

Go to the documentation of this file.

    00001
    00012 #include "word.h"
    00013
    00014 namespace ace {
    00015
    00016 /*  Interface item implementation - for info see description in header file.
    00017  */
    00018 const Word * WordStore::store(const Word& word) {
    00019     // Get memory.
    00020     // Parameter is obsolete, so pass 1...
    00021     void *mem = _memory_pool.get_memory(1); // This may throw.
    00022     // Copy passed word to new memory using copy constructor and placement new
    00023     // and return result.
    00024     return new (mem) Word(word);
    00025 }
    00026
    00027 } // namespace ace