LISTSERV mailing list manager LISTSERV 16.5

Help for QSERV-L Archives


QSERV-L Archives

QSERV-L Archives


QSERV-L@LISTSERV.SLAC.STANFORD.EDU


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

QSERV-L Home

QSERV-L Home

QSERV-L  March 2014

QSERV-L March 2014

Subject:

Re: SelectStmtList

From:

"Daniel L. Wang" <[log in to unmask]>

Reply-To:

General discussion for qserv (LSST prototype baseline catalog)

Date:

Mon, 24 Mar 2014 17:14:27 -0700

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (46 lines)

Jacek,

It's not as simple as it appears, unless you don't care about build 
dependencies.

> Similarly, I'd suggest to clean up ValueExprList typedefs,
> we have different definitions in different places:
>
>
> parser/SelectListFactory.h:typedef std::list<ValueExprPtr> ValueExprList;
> query/FuncExpr.h:typedef std::list<ValueExprPtr> ValueExprList;
> query/Predicate.h:    typedef std::list<boost::shared_ptr<ValueExpr> >
> ValueExprList;
> query/ValueExpr.h:typedef std::list<ValueExprPtr> ValueExprList;
This is particularly ugly. But, users of ValueExprList do not 
necessarily care about ValueExpr, and I would like to break the 
transitive dependency as much as I can. If we put the definition in 
ValueExpr.h, then users of SelectListFactory.h, FuncExpr.h, etc. must 
include ValueExpr.h.

>> Suggestion: let's move SelectStmtList from
>> qana/QueryPlugin.h to query/SelectStmt.
>>
Again, this means that all users of QueryPlugin must use SelectStmt.h 
and are sensitive to structural changes there. Most of the time, the 
analysis framework only cares that it has an opaque set of SelectStmt 
objects. It doesn't need to be recompiled if SelectStmt changes.

(Personally, I'm pretty sensitive about having small edits affect large 
tree of code.)

I would be in favor of putting those sorts of typedefs (e.g., typedef 
std::list<XXX> XXXList;) into a query/containers.h header, so they can 
all be in one place and avoid introducing dependencies.  It has the 
disadvantage of making a lot more code depend on STL container 
templates, but I think that's a relatively benign problem because those 
change rarely.

-Daniel

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the QSERV-L list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=QSERV-L&A=1

Top of Message | Previous Page | Permalink

Advanced Options


Options

Log In

Log In

Get Password

Get Password


Search Archives

Search Archives


Subscribe or Unsubscribe

Subscribe or Unsubscribe


Archives

March 2018
February 2018
January 2018
December 2017
August 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012

ATOM RSS1 RSS2



LISTSERV.SLAC.STANFORD.EDU

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager

Privacy Notice, Security Notice and Terms of Use