00001
00002
00003
00004
00005
00006
00007
00008
00009 static const char rcsid[] __attribute__((used)) = "$Id: Null.cpp 1197 2014-10-14 22:26:11Z sella $";
00010
00011 #include "Null.h"
00012
00013 using namespace sella::variant;
00014
00015 Null::Null() throw () : Nullable() { }
00016
00017 Null::Null(const Null &other) throw () : Nullable(other) { }
00018
00019 Null& Null::operator=(const Null &other) throw () {
00020 if (this != &other) {
00021 Nullable::operator=(other);
00022 }
00023
00024 return *this;
00025 }
00026
00027 Null::~Null() throw () { }
00028
00029 const std::string& Null::str() const throw () {
00030 if (cache.empty()) {
00031 cache = "null";
00032 }
00033
00034 return cache;
00035 }
00036
00037
00038
00039