Changeset 2ea9c89 in tol


Ignore:
Timestamp:
Apr 30, 2012, 2:34:55 PM (14 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
cb42322
Parents:
45c89d6
Message:

refs #1521

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@4616 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/btol/timeset_type/tms.cpp

    r45c89d6 r2ea9c89  
    724724  if(nth == 0) { return((!dte.HasValue()||Includes(dte))?dte:BDate::Unknown()); }
    725725  if(nth <  0) { return(Prev(dte, -nth)); }
     726  if(dte.IsTheEnd()) { return(BDate::End()); }
     727  if(dte.IsTheBegin()) { return(Inf()); }
     728
    726729  const BHash& cache = Cache();
    727730
    … …  
    768771  if(nth == 0) { return((!dte.HasValue()||Includes(dte))?dte:BDate::Unknown()); }
    769772  if(nth <  0) { return(Next(dte, -nth)); }
     773  if(dte.IsTheBegin()) { return(BDate::Begin()); }
     774  if(dte.IsTheEnd()) { return(Sup()); }
     775
    770776  const BHash& cache = Cache();
    771777  BInt  N      = cache.Size();
Note: See TracChangeset for help on using the changeset viewer.